package strategy;
//context combined with factory
public class BookStoreFactory {
    private String clientInfo;
    private BookPriceCategories bookCat;//context object
    BookStoreFactory(String clientInfo){
        this.clientInfo = clientInfo;
    }


    public void onlineBookStore(double bill){
        switch (clientInfo){
            case "初级会员": bookCat = new NormalClients();break;
            case "中级会员": bookCat = new ImortantClients();break;
            default: bookCat = new VIPClients();break;
        }
        bookCat.BillPricing(bill);
    }
}
